package com.cuitrip.resource;

import android.graphics.drawable.Drawable;

import com.cuitrip.resource.drawable.VerifiedEnDrawable;
import com.cuitrip.resource.drawable.VerifiedSDrawable;
import com.cuitrip.resource.drawable.VerifiedTwDrawable;
import com.cuitrip.resource.drawable.VerifiedZhDrawable;
import com.cuitrip.util.CtLocale;
import com.cuitrip.util.I118Util;

/**
 * Created by MiJack on 2016/1/7.
 */
public enum DrawableClass {
    VeritifiedDrawable {
        @Override
        public Drawable getDrawableInstance() {
            Drawable drawable;
            CtLocale locale = I118Util.getCtLocale();
            switch (locale) {
                case SIMPLIFIED_CHINESE:
                    drawable = new VerifiedZhDrawable();
                    break;
                case TRADITIONAL_CHINESE:
                    drawable = new VerifiedTwDrawable();
                    break;
                case ENGLISH:
                default:
                    drawable = new VerifiedEnDrawable();
            }
            return drawable;
        }
    }, VeritifiedSmallDrawable {
        @Override
        public Drawable getDrawableInstance() {
            Drawable drawable = new VerifiedSDrawable();
            return drawable;
        }
    };

    public abstract Drawable getDrawableInstance();
}
